<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-html</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<h1>v-html作用：设置标签的innerHTML属性</h1>
<div id="app">
    <h2 v-html="content"></h2>
</div>
<script>
    new Vue({
        el: '#app',
        data: {
            content: `<a href="https://www.baidu.com">content</a>`
        }
    })
</script>
</body>
</html>